@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#admin-app {
  height: 100%;
  // 主体区域
  .main-container {
    height: 100%;
    transition: margin-left .28s;
    margin-left: 180px;
    background: #f0f0f0;
  }
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

//main-container全局样式
.app-main {
  min-height: 100%
}

.app-container {
  padding: 15px;
}

.admin-form {
  .el-select,
  .el-cascader {
    width: 100%;
  }
  .el-form-item:last-child {
    margin-bottom: 0;
  }
}

.content-header {
  margin: 0 0 15px 0;
  .title {
    font-size: 20px;
  }
  .desc {
    color: #777;
    margin-left: 10px;
  }
}

.admin-card {
  .el-card__body,
  .el-card__header {
    padding: 15px;
  }

  .card-footer {
    margin-top: 15px;
  }
}

.admin-link {
  &.el-button {
    padding: 0;
    a {
      display: inline-block;
    }
  }

  &.el-button--small {
    a {
      padding: 9px 15px;
    }
  }

  &.el-button--mini {
    a {
      padding: 7px 10px;
    }
  }
}

.admin-layout-scrollbar {
  .el-scrollbar__wrap {
    overflow-x: hidden;
  }
  .is-horizontal {
    display: none;
  }
  .el-scrollbar__bar {
    &.is-vertical {
      width: 10px;
    }
  }
}
